package com.atguigu.orderservice.client;


import com.atguigu.commonutils.commonOrder.UCenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

//调用的服务的名称  同时开启熔断操作
@FeignClient(value = "server-msm")
@Component
public interface UMemberClient {

	@PostMapping("/ucenterservice/apimember/getMemberInformation/{userId}")
	// todo userId@PathVariable("userId")来接受值
	UCenterMemberOrder getMemberById(@PathVariable("userId") String userId);
}
